#ifndef __PLAYER_H__
#define __PLAYER_H__

#include <string>

/**
 * @brief 棋子玩家
 *
 */
class Player {
private:
  std::string name;

public:
  Player(std::string &name) : name(name) {}
  virtual ~Player() {}

  /**
   * @brief   下棋
   *
   * @param x
   * @param y
   * @return true 成功
   * @return false  失败
   */
  virtual bool playGames(unsigned int x, unsigned int y) = 0;

  std::string &getName(void) { return name; }

  void setName(std::string &name) { this->name = name; }
};

#endif // __PLAYER_H__